﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Sisocana.Core.Interfaces;

namespace Sisocana.Core.Models
{
    public class ONGDefinidaModel : IONGDefinidaModel
    {
        public int id { get; set; }

        [DisplayName("ONG Defined Name")]
        [Required(ErrorMessage = "ONG Defined Name")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string nombreONGDefinida { get; set; }

        [DisplayName("ONG Defined Telephone")]
        [Required(ErrorMessage = "ONG Defined Telephone")]
        [StringLength(50, ErrorMessage = "The maximum length is 100")]
        public string telefono { get; set; }

        [DisplayName("ONG Defined State")]
        [Required(ErrorMessage = "ONG Defined State required")]
        [StringLength(1, ErrorMessage = "The maximum length is 1")]
        public string estadoDefinido { get; set; }

        [DisplayName("ONG Defined paypal login")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string paypalLogin { get; set; }

        [DisplayName("ONG Defined paypal patner")]
        [StringLength(100, ErrorMessage = "The maximum length is 100")]
        public string paypalPartner { get; set; }

//Direccion
        [DisplayName("CoordX")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        public string CoordX { get; set; }

        [DisplayName("CoordY")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        public string CoordY { get; set; }

        [DisplayName("Country")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        [Required(ErrorMessage = "Country required")]
        public string Pais { get; set; }

        [DisplayName("State")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        [Required(ErrorMessage = "State required")]
        public string Estado { get; set; }

        [DisplayName("City")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        [Required(ErrorMessage = "City required")]
        public string Ciudad { get; set; }

        [DisplayName("Direction")]
        [Required(ErrorMessage = "ONG Direction required")]
        [StringLength(100, MinimumLength = 1, ErrorMessage = "The maximum lenght is 100")]
        public string Dir { get; set; }

        [DisplayName("Postal Code")]
        [StringLength(100, ErrorMessage = "The maximum lenght is 100")]
        [Required(ErrorMessage = "Postal Code required")]
        public string CP { get; set; }

//Relaciones
        public int sitioId { get; set; }
        public string ongName { get; set; }
        public string estadoONGGeneral { get; set; }

    }
}
